import request from '@/utils/request'

//查询车辆报废处置信息列表
export function getList(params) {
  return request({
    url: `/vehicleDisposal/vehicleDisposalScrap/list`,
    method: 'get',
    params
  })
}

//新增车辆报废处置信息
export function ScrapHandleNew(data) {
  return request({
    url: `/vehicleDisposal/vehicleDisposalScrap`,
    method: 'post',
    data
  })
}

//获取车辆报废处置信息详细信息
export function getDetails(vehicleDisposalScrapId) {
  return request({
    url: `/vehicleDisposal/vehicleDisposalScrap/${vehicleDisposalScrapId}`,
    method: 'get',
  })
}

//新增弹框车辆报废处置信息详细信息
export function getVehicleDisposalList(data) {
  return request({
    url: `/vehicleDisposal/vehicleDisposalScrap/getVehicleDisposalList`,
    method: 'post',
    data
  })
}

//提交车辆报废处置信息
export function submit(data) {
  return request({
    url: `/vehicleDisposal/vehicleDisposalScrap/submit`,
    method: 'post',
    data
  })
}
